<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>订单打印</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
<style type="text/css">
	table{width: 100%;}
	th{text-align: left;}
	th{border-top: 1px solid #333}
	/*.orderInfo td{border-top: 1px solid #333}*/
	.goodsInfo td{border-top: 1px solid #333}
</style>

<style   media="print">   
  .Noprint   {   DISPLAY:   none;}   
  .PageNext   {   PAGE-BREAK-AFTER:   always   }   
</style>  

</head>
<body>
    {volist name="list" id='vo'}
    <table cellspacing="0" class="PageNext">
        <tr class="orderInfo"><td colspan="6"><p style="text-align: right; margin: 5px 40px 5px 5px;">采购员：{$vo.employee_name} 订单号：{:sprintf('%06s',$vo['purchase_id'])} 订单时间：{$vo['create_time']}</p></td></tr>

    	<tr>
    		<th>商品名称</th>
    		<th>采购数量</th>
    		<th>商品品牌</th>
    		<th>当前售价</th>
    		<th>上次采购价格</th>
    		<th>上次采购供应商</th>
    	</tr>
    	
    	{volist name="vo['list']" id="v"}
    	<tr class="goodsInfo">
    		<td>{$v.goods_name}&nbsp;&nbsp;[&nbsp;1*{$v.spec_name}&nbsp;({$v.specval_name})&nbsp;]</td>
            <td>{$v['num']}{$v.spec_name}</td>
            <td>{$v.brand_name}</td>
            <td>{$v.price}</td>
            <td>{$v.last_price}</td>
            <td>{$v.supplier_name}</td>
    	</tr>
    	{/volist}
    	
    </table>
    {/volist}
    <script type="text/javascript">
    	window.onload = function(){
    		window.print();
    		setTimeout(function(){
    			window.parent.closeIfram();
    		},1000)
    	}
    </script>
</body>
</html>